package com.ruoyi.background.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 健步风采照片对象 app_work_img
 *
 * @author susu
 * @date 2024-09-04
 */
public class AppWorkImg extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    private String nickName;

    private String avatar;

    private String deptName;

    private String[] imagesList;


    /**
     * 部门id
     */
    @Excel(name = "部门id")
    private Long deptId;

    /**
     * 内容
     */
    @Excel(name = "内容")
    private String content;

    /**
     * 照片
     */
    @Excel(name = "照片")
    private String images;

    /**
     * 0上架1下架
     */
    @Excel(name = "0上架1下架")
    private Integer status;

    /**
     * 已经奖励
     */
    @Excel(name = "已经奖励")
    private Integer isGrade;

    /**
     * 奖励时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "奖励时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date gradeTime;

    public String[] getImagesList() {
        return imagesList;
    }

    public void setImagesList(String[] imagesList) {
        this.imagesList = imagesList;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public String getImages() {
        return images;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setIsGrade(Integer isGrade) {
        this.isGrade = isGrade;
    }

    public Integer getIsGrade() {
        return isGrade;
    }

    public void setGradeTime(Date gradeTime) {
        this.gradeTime = gradeTime;
    }

    public Date getGradeTime() {
        return gradeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("content", getContent())
                .append("images", getImages())
                .append("status", getStatus())
                .append("isGrade", getIsGrade())
                .append("gradeTime", getGradeTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
